<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    class Person {
        age = 0;
        sex = 'male';

        constructor(age, sex) {
            this.age = age;
            this.sex = sex;
        }
    }

    const p = new Person(18);
    console.log(p);
</script>
</body>
</html>